aboutsummaryrefslogtreecommitdiff
path: root/src/bun.js/scripts/generate-classes.ts
diff options
context:
space:
mode:
authorGravatar Dylan Conway <35280289+dylan-conway@users.noreply.github.com> 2022-11-18 23:03:39 -0800
committerGravatar GitHub <noreply@github.com> 2022-11-18 23:03:39 -0800
commit43b4e1b67bad69ac4da193ea2ac603b1a985839e (patch)
treed1a630d285163f55853d56afac82a586e1a999fe /src/bun.js/scripts/generate-classes.ts
parentf3fb71205110448a4fb69ee39d11dc092a97069c (diff)
downloadbun-43b4e1b67bad69ac4da193ea2ac603b1a985839e.tar.gz
bun-43b4e1b67bad69ac4da193ea2ac603b1a985839e.tar.zst
bun-43b4e1b67bad69ac4da193ea2ac603b1a985839e.zip
bun test matchers and tests (#1526)
* ignore webkit for cherry-pick * toContain and toBeTruthy * toBe null, undefined, falsy, toHaveProperty, .not * markBindings * remove toHaveProperty, undo ignore webkit, more tests * undo ignore webkit * remove bad tests * check if length property exists for toHaveLength() * fix call signature * handle argument that is not an integer * getLengthOfArray returns u64 * switch to truncate * toHaveLength() edge cases * add toBooleanSlow() * infinity, nan, negative
Diffstat (limited to 'src/bun.js/scripts/generate-classes.ts')
-rw-r--r--src/bun.js/scripts/generate-classes.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bun.js/scripts/generate-classes.ts b/src/bun.js/scripts/generate-classes.ts
index 6689667b2..aa0eab9d8 100644
--- a/src/bun.js/scripts/generate-classes.ts
+++ b/src/bun.js/scripts/generate-classes.ts
@@ -823,7 +823,7 @@ JSC_DEFINE_CUSTOM_GETTER(${symbolName(
typeName,
proto[name].getter,
)}(thisObject->wrapped(),${
- proto[name].this!! ? " thisValue, " : ""
+ !!proto[name].this ? " thisValue, " : ""
} globalObject);
RETURN_IF_EXCEPTION(throwScope, {});
RELEASE_AND_RETURN(throwScope, result);
@@ -852,7 +852,7 @@ JSC_DEFINE_CUSTOM_SETTER(${symbolName(
typeName,
proto[name].setter || proto[name].accessor.setter,
)}(thisObject->wrapped(),${
- proto[name].this!! ? " thisValue, " : ""
+ !!proto[name].this ? " thisValue, " : ""
} lexicalGlobalObject, encodedValue);
RELEASE_AND_RETURN(throwScope, result);