-
-
Notifications
You must be signed in to change notification settings - Fork 51
Accessing localStorage fails #18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@carson-katri Thanks for report! Could you try this branch #19 ? |
Sorry, same crash 😕 |
@carson-katri Hmm, did you reference local runtime library in this repo instead of the released runtime library?
$ pwd
path/to/JavaScriptKit
$ cd Runtime && npm run build
{
...
"dependencies": {
...
- "javascript-kit-swift": "0.4.0"
+ "javascript-kit-swift": "file:path/to/JavaScriptKit/Runtime"
},
...
}
let package = Package(
...
- .package(url: "https://github.com/kateinoigakukun/JavaScriptKit.git", .revision("master")),
+ dependencies: [.package(name: "JavaScriptKit", path: "path/to/JavaScriptKit")],
...
) |
I assume, if the project is built with |
Most probably easier to test that branch without |
Got it working, thanks! |
Here's a simple example:
Prints
null
then.string("world")
as expected.However, if you refresh the site after the value is set, it crashes with
Reflect.get called on non-object
.The text was updated successfully, but these errors were encountered: