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

Unified Diff: third_party/WebKit/LayoutTests/virtual/enable_asmjs/http/tests/asmjs/worker.js

Issue 2530503002: [wasm][asm.js] Routing asm.js warnings to the dev console. (Closed)
Patch Set: merge Created 4 years 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
Index: third_party/WebKit/LayoutTests/virtual/enable_asmjs/http/tests/asmjs/worker.js
diff --git a/third_party/WebKit/LayoutTests/virtual/enable_asmjs/http/tests/asmjs/worker.js b/third_party/WebKit/LayoutTests/virtual/enable_asmjs/http/tests/asmjs/worker.js
new file mode 100644
index 0000000000000000000000000000000000000000..69bb4d283e0beb95cd5b2f87db1261b17e8963e6
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/virtual/enable_asmjs/http/tests/asmjs/worker.js
@@ -0,0 +1,11 @@
+self.onmessage = function(e) {
+ function ModuleBadAsm() {
+ "use asm";
+ var x = 1;
+ var y = x + 1;
+ function foo() {}
+ return {bar: foo};
+ }
+ ModuleBadAsm();
+ self.postMessage({name: 'dude'});
+};

Powered by Google App Engine
This is Rietveld 408576698