diff options
| author | 2023-05-24 15:45:39 -0700 | |
|---|---|---|
| committer | 2023-05-24 15:45:39 -0700 | |
| commit | 29969bc130d080473ac8b01369c608cae3b7ecc5 (patch) | |
| tree | d9a95664261afd303c6aacdbab52bef3b276cfbf /src | |
| parent | 1ea74238cd920b46c648c805554e65173b7cc9b5 (diff) | |
| download | bun-29969bc130d080473ac8b01369c608cae3b7ecc5.tar.gz bun-29969bc130d080473ac8b01369c608cae3b7ecc5.tar.zst bun-29969bc130d080473ac8b01369c608cae3b7ecc5.zip | |
Add comment
Diffstat (limited to 'src')
| -rw-r--r-- | src/bun.js/bindings/bindings.zig | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/bun.js/bindings/bindings.zig b/src/bun.js/bindings/bindings.zig index a03737119..038a81b1e 100644 --- a/src/bun.js/bindings/bindings.zig +++ b/src/bun.js/bindings/bindings.zig @@ -3773,6 +3773,10 @@ pub const JSValue = enum(JSValueReprInt) { return res; } + /// Returns true if + /// - `" string literal"` + /// - `new String("123")` + /// - `class DerivedString extends String; new DerivedString("123")` pub inline fn isString(this: JSValue) bool { if (!this.isCell()) return false; |
