Status: Untriaged
Owner: ----
Type: Bug
New issue 8064 by
iigor.si...@gmail.com: Invalid asm.js - Function use doesn't match definition
https://bugs.chromium.org/p/v8/issues/detail?id=8064Version: 7.0.237
OS: Ubuntu 16.04
Architecture: x64
Hi everyone, a warning message "Function use doesn't match definition" appears if we use a plus operator (eg. +sqrt()) on asm mode.
Step to reproduce:
function DiagModule(stdlib) {
"use asm";
var sqrt = stdlib.Math.sqrt;
function square(x) {
x = +x;
return +(x*x);
}
function diag(x, y) {
x = +x;
y = +y;
return +sqrt(square(x) + square(y));
}
return { diag: diag };
}
var mod = DiagModule(this);
print(mod.diag(3, 4));
Actual results:
Invalid asm.js: Function use doesn't match definition
5
Expected results:
5
Chakra, SpiderMonkey and JavaScriptCore works as expected.
cinfuzz
--
You received this message because:
1. The project was configured to send all issue notifications to this address
You may adjust your notification preferences at:
https://bugs.chromium.org/hosting/settings