Change 'assert' handle to pass only upon exactly 1 argument is received, and the argument is boolean true; update internal test suite correspondingly.

JerryScript-DCO-1.0-Signed-off-by: Ruben Ayrapetyan r.ayrapetyan@samsung.com
This commit is contained in:
Ruben Ayrapetyan
2015-07-30 15:13:16 +03:00
parent 5d385b1144
commit c715a7cd1d
44 changed files with 138 additions and 137 deletions
+3 -3
View File
@@ -1,4 +1,4 @@
// Copyright 2014 Samsung Electronics Co., Ltd.
// Copyright 2014-2015 Samsung Electronics Co., Ltd.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@@ -13,5 +13,5 @@
// limitations under the License.
var a = NaN;
var b = new Object();
assert((!a && b))
var b = new Object ();
assert ((!a && b) === b);
@@ -1,4 +1,4 @@
// Copyright 2014 Samsung Electronics Co., Ltd.
// Copyright 2014-2015 Samsung Electronics Co., Ltd.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@@ -15,4 +15,4 @@
var a = 0xffffffff;
var _a = a;
var b = 4;
assert(a >>= b === _a >> b)
assert ((a >>= b) === (_a >> b));
@@ -1,4 +1,4 @@
// Copyright 2014 Samsung Electronics Co., Ltd.
// Copyright 2014-2015 Samsung Electronics Co., Ltd.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@@ -15,4 +15,4 @@
var a = 0xffffffff;
var _a = a;
var b = 4;
assert(a <<= b === _a << b)
assert ((a <<= b) === (_a << b));
@@ -1,4 +1,4 @@
// Copyright 2014 Samsung Electronics Co., Ltd.
// Copyright 2014-2015 Samsung Electronics Co., Ltd.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@@ -15,4 +15,4 @@
var a = 0xffffffff;
var _a = a;
var b = 4;
assert(a >>>= b === _a >>> b)
assert ((a >>>= b) === (_a >>> b));