diff options
author | Gus Caplan <me@gus.host> | 2018-11-14 09:06:18 -0600 |
---|---|---|
committer | Gus Caplan <me@gus.host> | 2018-11-16 09:16:15 -0600 |
commit | e1aa7301b4118a92a8f056d1bc02e6069886a913 (patch) | |
tree | 28f9f739bc9fd71f42282e4bc5c955d4141c591f /test/message/v8_warning.js | |
parent | 5f9b624766d42907001232599e57a99f10810b9d (diff) | |
download | android-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/v8_warning.js')
-rw-r--r-- | test/message/v8_warning.js | 19 |
1 files changed, 19 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(); |