-
Notifications
You must be signed in to change notification settings - Fork 29.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PR-URL: #656 Reviewed-By: Fedor Indutny <[email protected]>
- Loading branch information
1 parent
00f822f
commit cbc1262
Showing
3 changed files
with
25 additions
and
1 deletion.
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
17 changes: 17 additions & 0 deletions
17
deps/v8/test/mjsunit/compiler/regress-bit-number-constant.js
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// Copyright 2015 the V8 project authors. All rights reserved. | ||
// Use of this source code is governed by a BSD-style license that can be | ||
// found in the LICENSE file. | ||
|
||
var stdlib = this; | ||
var buffer = new ArrayBuffer(64 * 1024); | ||
var foreign = {} | ||
|
||
var foo = (function Module(stdlib, foreign, heap) { | ||
"use asm"; | ||
function foo(i) { | ||
return !(i ? 1 : false); | ||
} | ||
return {foo:foo}; | ||
})(stdlib, foreign, buffer).foo; | ||
|
||
assertFalse(foo(1)); |