profile
viewpoint
Eric Lange ericwlange Joonko Berlin, Germany https://github.com/LiquidPlayer CTO/CPO @ Joonko.de. Former CPO @ Delivery Hero AG; product at Google, Yahoo, Flipkart, Microsoft, et al

LiquidPlayer/LiquidCore 684

Node.js virtual machine for Android and iOS

ericwlange/AndroidJSCore 438

AndroidJSCore allows Android developers to use JavaScript natively in their apps.

ericwlange/hemroid 4

Because building Linux libraries for Android is a pain in the ass.

ericwlange/webkit 3

Unofficial mirror of the WebKit SVN repository

ericwlange/node 0

Node.js JavaScript runtime :sparkles::turtle::rocket::sparkles:

ericwlange/react-native 0

A framework for building native apps with React.

long1eu/liquid_core_and_firestore_test 0

Test project to demonstrate de imcompatibility between FirebaseFirestore and LiquidCore

issue commentLiquidPlayer/LiquidCore

TypeError: instanceof called on an object with an invalid prototype property.

It looks like BigInt has been added to JavaScriptCore in iOS 14:

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt (see compatibility table -- added in Safari for iOS 14) https://developer.apple.com/documentation/safari-release-notes/safari-14-beta-release-notes (Safari 14 releases with iOS 14)

So this may be an iOS 14-only problem, in that there is a native implementation and that native implementation does not have a prototype.

If so, that line of code needs to change somehow. Not sure how just yet.

carlosjrtee

comment created time in 4 days

issue commentLiquidPlayer/LiquidCore

TypeError: instanceof called on an object with an invalid prototype property.

Maybe try a polyfill. Something like this at the very beginning of your code before axios is loaded:

class Foo {}
global.BigInt = new Foo()

That should make sure BigInt conforms to the expectation. What version of iOS are you testing on?

carlosjrtee

comment created time in 4 days

issue commentLiquidPlayer/LiquidCore

TypeError: instanceof called on an object with an invalid prototype property.

Unfortunately BigInt is not natively supported by the JavaScriptCore implementation on iOS. I attempted to polyfill it as much as I could, but it won't work natively. It should not crash however.

On Mon, Sep 14, 2020, 9:20 AM Carlos Jr. Tee notifications@github.com wrote:

This happens when axios receives an error response from server:

TypeError: instanceof called on an object with an invalid prototype property. Assertion failed: (exception==0), function exec, file /Users/ctee/Documents/pf-ios/1/Pods/LiquidCore/LiquidCore/src/ios/V82JSC/V82JSC.h, line 286.

#0 0x00000001bc0b995c in __pthread_kill () #1 https://github.com/LiquidPlayer/LiquidCore/issues/1 0x00000001d68fb9e8 in pthread_kill () #2 https://github.com/LiquidPlayer/LiquidCore/issues/2 0x000000019ac52934 in abort () #3 https://github.com/LiquidPlayer/LiquidCore/issues/3 0x000000019ac51d34 in

assert_rtn () #4 https://github.com/LiquidPlayer/LiquidCore/issues/4 0x0000000101c4dd3c in V82JSC::exec(OpaqueJSContext const, char const*, int, OpaqueJSValue const* const*, OpaqueJSValue const**) at /Users/ctee/Documents/pf-ios/1/Pods/LiquidCore/LiquidCore/src/ios/V82JSC/V82JSC.h:286 #5 https://github.com/LiquidPlayer/LiquidCore/issues/5 0x0000000102319130 in is*(v8::Value const*, char const*) at /Users/ctee/Documents/pf-ios/1/Pods/LiquidCore/LiquidCore/src/ios/V82JSC/Value.cpp:27 #6 https://github.com/LiquidPlayer/LiquidCore/issues/6 0x0000000102319ff8 in v8::Value::IsBigIntObject() const at /Users/ctee/Documents/pf-ios/1/Pods/LiquidCore/LiquidCore/src/ios/V82JSC/Value.cpp:399 #7 https://github.com/LiquidPlayer/LiquidCore/issues/7 0x00000001020f8a5c in node::(anonymous namespace)::IsBoxedPrimitive(v8::FunctionCallbackInfov8::Value const&) at /Users/ctee/Documents/pf-ios/1/Pods/LiquidCore/deps/node-10.15.3/src/node_types.cc:59 #8 https://github.com/LiquidPlayer/LiquidCore/issues/8 0x000000010228f440 in OpaqueJSValue const* callAsCallback<OpaqueJSValue const*>(OpaqueJSContext const*, OpaqueJSValue*, OpaqueJSValue*, unsigned long, OpaqueJSValue const* const*, OpaqueJSValue const**) at /Users/ctee/Documents/pf-ios/1/Pods/LiquidCore/LiquidCore/src/ios/V82JSC/Template.cpp:249 #9 https://github.com/LiquidPlayer/LiquidCore/issues/9 0x000000010228ec08 in V82JSC::Template::callAsFunctionCallback(OpaqueJSContext const*, OpaqueJSValue*, OpaqueJSValue*, unsigned long, OpaqueJSValue const* const*, OpaqueJSValue const**) at /Users/ctee/Documents/pf-ios/1/Pods/LiquidCore/LiquidCore/src/ios/V82JSC/Template.cpp:281

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/LiquidPlayer/LiquidCore/issues/192, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJC4ZFPKUHTXELGTIAXEPDSFW72VANCNFSM4RLHWXQA .

carlosjrtee

comment created time in 4 days

release LiquidPlayer/LiquidCore

0.7.10

released time in 3 months

created tagLiquidPlayer/LiquidCore

tag0.7.10

Node.js virtual machine for Android and iOS

created time in 3 months

push eventLiquidPlayer/LiquidCore

Eric Lange

commit sha 9405979363f2353ac9a71ad8ab59685dd7f919c9

Bumped to 0.7.10

view details

push time in 3 months

more