blob: 0b4d1cdfcabb4aa850a7370f0a3a8c751de0233a [file] [log] [blame]
function shouldBe(actual, expected) {
if (actual !== expected)
throw new Error('bad value: ' + actual);
}
class A extends Function {}
shouldBe(new A("'use strict';").hasOwnProperty('arguments'), false);
shouldBe(new A().hasOwnProperty('arguments'), true);