diff options
author | 2022-03-23 01:46:47 -0700 | |
---|---|---|
committer | 2022-03-23 01:46:47 -0700 | |
commit | 5e5f0bd2930a0e1a2f897ba6e857be05e8ca04f2 (patch) | |
tree | c7b707280cba036f57ba2888bde6034845cb0448 /src/javascript/jsc/bindings/bindings.cpp | |
parent | 9974142eef9909866128951f64f4beb8a9617db7 (diff) | |
download | bun-5e5f0bd2930a0e1a2f897ba6e857be05e8ca04f2.tar.gz bun-5e5f0bd2930a0e1a2f897ba6e857be05e8ca04f2.tar.zst bun-5e5f0bd2930a0e1a2f897ba6e857be05e8ca04f2.zip |
[bun.js] Implement Bun.write()
Diffstat (limited to 'src/javascript/jsc/bindings/bindings.cpp')
-rw-r--r-- | src/javascript/jsc/bindings/bindings.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/javascript/jsc/bindings/bindings.cpp b/src/javascript/jsc/bindings/bindings.cpp index 9f12ee44d..7036508c4 100644 --- a/src/javascript/jsc/bindings/bindings.cpp +++ b/src/javascript/jsc/bindings/bindings.cpp @@ -1617,7 +1617,10 @@ int64_t JSC__JSValue__toInt64(JSC__JSValue val) } if (auto* heapBigInt = _val.asHeapBigInt()) { - return heapBigInt->toBigInt64(heapBigInt); + if (heapBigInt != nullptr) { + return heapBigInt->toBigInt64(heapBigInt); + } + } |