Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(657)

Unified Diff: test/mjsunit/d8-worker.js

Issue 2657403002: Revert of [d8] Use ValueSerializer for postMessage (instead of ad-hoc serializer) (Closed)
Patch Set: Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/value-serializer.cc ('k') | test/mjsunit/d8-worker-sharedarraybuffer.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/d8-worker.js
diff --git a/test/mjsunit/d8-worker.js b/test/mjsunit/d8-worker.js
index 140cf3ccd89e51e5ace073e6bdfb0fec0a9cf67a..f172fb160338338476473503e54514cb1a994bde 100644
--- a/test/mjsunit/d8-worker.js
+++ b/test/mjsunit/d8-worker.js
@@ -61,8 +61,8 @@
}
break;
case 7:
- if (JSON.stringify(m) !== '{"a":1,"b":2.5,"c":"three"}')
- throw new Error('Object' + JSON.stringify(m));
+ if (JSON.stringify(m) !== \"{'a':1,'b':2.5,'c':'three'}\")
+ throw new Error('Object');
break;
case 8:
var ab = m;
@@ -88,6 +88,7 @@
}
};`;
+
if (this.Worker) {
function createArrayBuffer(byteLength) {
var ab = new ArrayBuffer(byteLength);
@@ -109,17 +110,6 @@
w.postMessage("hi");
w.postMessage([4, true, "bye"]);
w.postMessage({a: 1, b: 2.5, c: "three"});
-
- // Test bad get in transfer list.
- var transferList = [undefined];
- Object.defineProperty(transferList, '0', {
- get: function() {
- throw 'unexpected!';
- }
- });
- assertThrows(function() {
- w.postMessage([], transferList);
- });
// Clone ArrayBuffer
var ab1 = createArrayBuffer(16);
« no previous file with comments | « src/value-serializer.cc ('k') | test/mjsunit/d8-worker-sharedarraybuffer.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698