Bug 854396 - OdinMonkey: make 'unsigned' not be a subtype of 'extern' (r=sstangl)

--HG--
extra : rebase_source : d3edd1114ef097d8bdde537bcfc74ddee77e40d0
This commit is contained in:
Luke Wagner 2013-04-01 15:53:53 -07:00
parent e0936f71a7
commit 346ca9a320
2 changed files with 2 additions and 1 deletions

View File

@ -390,7 +390,7 @@ class Type
}
bool isExtern() const {
return isDouble() || isSigned() || isUnsigned();
return isDouble() || isSigned();
}
MIRType toMIRType() const {

View File

@ -28,6 +28,7 @@ assertAsmTypeFail('glob', 'imp', USE_ASM + 'var inc=imp.inc; function f() { retu
assertAsmTypeFail('glob', 'imp', USE_ASM + 'var inc=imp.inc; function f() { return +((inc()|0) + 1.1) } return f');
assertAsmTypeFail('glob', 'imp', USE_ASM + 'var inc=imp.inc; function f() { return +(inc() + 1.1) } return f');
assertAsmTypeFail('glob', 'imp', USE_ASM + 'var inc=imp.inc; function f() { return (+inc() + 1)|0 } return f');
assertAsmTypeFail('glob', 'imp', USE_ASM + 'var inc=imp.inc; function f() { var i = 0; inc(i>>>0) } return f');
assertAsmLinkFail(asmCompile('glob', 'imp', USE_ASM + 'var inc=imp.inc; function f() { return inc()|0 } return f'), null, {});
assertAsmLinkFail(asmCompile('glob', 'imp', USE_ASM + 'var inc=imp.inc; function f() { return inc()|0 } return f'), null, {inc:0});