diff --git a/test/Array/array_splice.js b/test/Array/array_splice.js index f9599004c18..a0021425f77 100644 --- a/test/Array/array_splice.js +++ b/test/Array/array_splice.js @@ -1,5 +1,6 @@ //------------------------------------------------------------------------------------------------------- // Copyright (C) Microsoft. All rights reserved. +// Copyright (c) ChakraCore Project Contributors. All rights reserved. // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information. //------------------------------------------------------------------------------------------------------- @@ -121,7 +122,7 @@ try } catch(e) { - if (!e instanceof TypeError) throw(e); + if (!(e instanceof TypeError)) throw(e); WScript.Echo(y); WScript.Echo(x); } @@ -132,7 +133,7 @@ try } catch(e) { - if (!e instanceof TypeError) throw(e); + if (!(e instanceof TypeError)) throw(e); WScript.Echo(y); WScript.Echo(x); } @@ -143,7 +144,7 @@ try } catch(e) { - if (!e instanceof TypeError) throw(e); + if (!(e instanceof TypeError)) throw(e); WScript.Echo(y); WScript.Echo(x); } diff --git a/test/Array/array_splice_double.js b/test/Array/array_splice_double.js index 29d8d744d11..eb97387b5c2 100644 --- a/test/Array/array_splice_double.js +++ b/test/Array/array_splice_double.js @@ -1,5 +1,6 @@ //------------------------------------------------------------------------------------------------------- // Copyright (C) Microsoft. All rights reserved. +// Copyright (c) ChakraCore Project Contributors. All rights reserved. // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information. //------------------------------------------------------------------------------------------------------- @@ -121,7 +122,7 @@ try } catch(e) { - if (!e instanceof TypeError) throw(e); + if (!(e instanceof TypeError)) throw(e); WScript.Echo(y); WScript.Echo(x); } @@ -132,7 +133,7 @@ try } catch(e) { - if (!e instanceof TypeError) throw(e); + if (!(e instanceof TypeError)) throw(e); WScript.Echo(y); WScript.Echo(x); } @@ -143,7 +144,7 @@ try } catch(e) { - if (!e instanceof TypeError) throw(e); + if (!(e instanceof TypeError)) throw(e); WScript.Echo(y); WScript.Echo(x); } diff --git a/test/es5/RegExpStrictDelete.js b/test/es5/RegExpStrictDelete.js index e2652ed8922..378855fb57b 100644 --- a/test/es5/RegExpStrictDelete.js +++ b/test/es5/RegExpStrictDelete.js @@ -1,5 +1,6 @@ //------------------------------------------------------------------------------------------------------- // Copyright (C) Microsoft. All rights reserved. +// Copyright (c) ChakraCore Project Contributors. All rights reserved. // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information. //------------------------------------------------------------------------------------------------------- @@ -22,7 +23,7 @@ for (var i = 0, len = props.length; i < len; i++) } catch (err) { - if (!err instanceof TypeError) + if (!(err instanceof TypeError)) WScript.Echo("Error: strict delete threw a non-TypeError: " + err); } }