https://bugs.webkit.org/show_bug.cgi?id=147444
Unreviewed.
* resources/standalone-pre.js:
(shouldBeType):
Copy shouldBeType() from the non-standalone version.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@187581
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2015-07-30 Benjamin Poulain <benjamin@webkit.org>
+
+ Update JSC's standalone-pre.js for r187575
+ https://bugs.webkit.org/show_bug.cgi?id=147444
+
+ Unreviewed.
+
+ * resources/standalone-pre.js:
+ (shouldBeType):
+ Copy shouldBeType() from the non-standalone version.
+
2015-07-29 Andy VanWagoner <thetalecrafter@gmail.com>
Implement basic types for ECMAScript Internationalization API
return values.length;
}
+function shouldBeType(_a, _type) {
+ var exception;
+ var _av;
+ try {
+ _av = eval(_a);
+ } catch (e) {
+ exception = e;
+ }
+
+ var _typev = eval(_type);
+ if (_av instanceof _typev) {
+ testPassed(_a + " is an instance of " + _type);
+ } else {
+ testFailed(_a + " is not an instance of " + _type);
+ }
+}
+
function shouldBeTrue(_a) { shouldBe(_a, "true"); }
function shouldBeFalse(_a) { shouldBe(_a, "false"); }
function shouldBeNaN(_a) { shouldBe(_a, "NaN"); }