Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
src: emit warnings from V8
PR-URL: #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>
- Loading branch information
Showing
with
50 additions
and 7 deletions.
- +30 −7 src/node.cc
- +19 −0 test/message/v8_warning.js
- +1 −0 test/message/v8_warning.out
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @@ -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(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @@ -0,0 +1 @@ | ||
| (node:*) V8: *v8_warning.js:* Invalid asm.js: Invalid return type |