question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Incorrect semantics for globals

See original GitHub issue

These should be true:

{}.constructor === Object
[].constructor === Array

They are true in node, browser, and are true in production cloudflare pages/workers. They are not true in miniflare.

(my use case is trying to use ClojureScript compiled code which is using these)

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7

github_iconTop GitHub Comments

1reaction
jlongstercommented, Jan 8, 2022

cool, that’s what I figured but wanted to make sure that was right. Shouldn’t be a problem for my case, and that tradeoff makes sense!

0reactions
mrbbotcommented, Jan 8, 2022

The comment at the start of this file goes into detail on this. 🙂 The realm boundary is between stuff running in Node (runtime APIs: KV, etc) and stuff running in Miniflare’s vm sandbox (user code).

Read more comments on GitHub >

github_iconTop Results From Across the Web

What does "semantically incorrect" mean? : r/learnprogramming
It basically means using something in a way that it's not supposed to be used. For instance, you can use <li> tags to...
Read more >
2.1: Techniques of Defining- “Semantics” vs “Syntax” and ...
A semantic problem is one where you are running afoul of the meanings and word choices you have made or are using, and...
Read more >
On the origin of semantic errors in naming - Taylor and Francis
Incorrect cues elicited a variety of errors; semantic errors were the most frequent, and they were not often rejected by JCU saying “no”...
Read more >
Operational Semantics
Prove global properties of any program written in the language. ▷ Verify programs against formal ... Incorrect semantics for while. (b,σ) −→ (b...
Read more >
an Enabler of Semantics-Empowered Communication - arXiv
The Age of Incorrect Information: an Enabler of. Semantics-Empowered ... was witnessed lately amid the global COVID-19 pandemic,.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found