diff options
author | Ben Noordhuis <info@bnoordhuis.nl> | 2014-05-12 05:07:46 +0200 |
---|---|---|
committer | Fedor Indutny <fedor@indutny.com> | 2014-06-12 17:46:17 -0700 |
commit | 3a280b2034e3ea438cd3a2e7acd1a4cd40112ac5 (patch) | |
tree | ae194faf83fd22ad890b421c2ebd537db1a52534 /deps/v8/test/mjsunit/math-floor-part4.js | |
parent | 5413d9abe0df7e22bdb650a65f4c0ac462bbe147 (diff) | |
download | node-new-3a280b2034e3ea438cd3a2e7acd1a4cd40112ac5.tar.gz |
deps: upgrade v8 to 3.26.33
Signed-off-by: Fedor Indutny <fedor@indutny.com>
Diffstat (limited to 'deps/v8/test/mjsunit/math-floor-part4.js')
-rw-r--r-- | deps/v8/test/mjsunit/math-floor-part4.js | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/deps/v8/test/mjsunit/math-floor-part4.js b/deps/v8/test/mjsunit/math-floor-part4.js index c633623083..58212b4c56 100644 --- a/deps/v8/test/mjsunit/math-floor-part4.js +++ b/deps/v8/test/mjsunit/math-floor-part4.js @@ -25,7 +25,7 @@ // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -// Flags: --max-new-space-size=256 --allow-natives-syntax +// Flags: --max-new-space-size=2 --allow-natives-syntax var test_id = 0; @@ -37,6 +37,15 @@ function testFloor(expect, input) { assertEquals(expect, test(input)); %OptimizeFunctionOnNextCall(test); assertEquals(expect, test(input)); + + var test_double_output = new Function( + 'n', + '"' + (test_id++) + '";return Math.floor(n) + -0.0'); + assertEquals(expect, test_double_output(input)); + assertEquals(expect, test_double_output(input)); + assertEquals(expect, test_double_output(input)); + %OptimizeFunctionOnNextCall(test_double_output); + assertEquals(expect, test_double_output(input)); } function zero() { |