Fix the test after r183758 since shouldNotBe is not supported in the standalone testing.
[WebKit-https.git] / LayoutTests / js / script-tests / class-syntax-default-constructor.js
index cf4f60ce50ba333da0a37fae3515493fcd23d320..457faa4579ab80feb222be849258b42117f9408d 100644 (file)
@@ -12,7 +12,7 @@ shouldBeTrue('new B instanceof A; new B instanceof A');
 shouldThrow('B()', '"TypeError: Cannot call a class constructor"');
 shouldBe('B.prototype.constructor.name', '"B"');
 shouldBeTrue('A !== B');
-shouldNotBe('A.prototype.constructor', 'B.prototype.constructor');
+shouldBeTrue('A.prototype.constructor !== B.prototype.constructor');
 shouldBe('new (class extends (class { constructor(a, b) { return [a, b]; } }) {})(1, 2)', '[1, 2]');
 
 var successfullyParsed = true;