summaryrefslogtreecommitdiff
path: root/test/message
diff options
context:
space:
mode:
authorGus Caplan <me@gus.host>2018-11-14 09:06:18 -0600
committerGus Caplan <me@gus.host>2018-11-16 09:16:15 -0600
commite1aa7301b4118a92a8f056d1bc02e6069886a913 (patch)
tree28f9f739bc9fd71f42282e4bc5c955d4141c591f /test/message
parent5f9b624766d42907001232599e57a99f10810b9d (diff)
downloadandroid-node-v8-e1aa7301b4118a92a8f056d1bc02e6069886a913.tar.gz
android-node-v8-e1aa7301b4118a92a8f056d1bc02e6069886a913.tar.bz2
android-node-v8-e1aa7301b4118a92a8f056d1bc02e6069886a913.zip
src: emit warnings from V8
PR-URL: https://github.com/nodejs/node/pull/24365 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com> Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Diffstat (limited to 'test/message')
-rw-r--r--test/message/v8_warning.js19
-rw-r--r--test/message/v8_warning.out1
2 files changed, 20 insertions, 0 deletions
diff --git a/test/message/v8_warning.js b/test/message/v8_warning.js
new file mode 100644
index 0000000000..e3394cdd70
--- /dev/null
+++ b/test/message/v8_warning.js
@@ -0,0 +1,19 @@
+'use strict';
+
+require('../common');
+
+function AsmModule() {
+ 'use asm';
+
+ function add(a, b) {
+ a = a | 0;
+ b = b | 0;
+
+ // should be `return (a + b) | 0;`
+ return a + b;
+ }
+
+ return { add: add };
+}
+
+AsmModule();
diff --git a/test/message/v8_warning.out b/test/message/v8_warning.out
new file mode 100644
index 0000000000..7943d0e9d6
--- /dev/null
+++ b/test/message/v8_warning.out
@@ -0,0 +1 @@
+(node:*) V8: *v8_warning.js:* Invalid asm.js: Invalid return type