Skip to content
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

Blob LastModified incompatibility with Node #14257

Open
EmilyNyx opened this issue Sep 30, 2024 · 1 comment
Open

Blob LastModified incompatibility with Node #14257

EmilyNyx opened this issue Sep 30, 2024 · 1 comment
Labels
bug Something isn't working web-api Something that relates to a standard Web API wintercg Web-interoperable Runtimes Community Group compatiblity

Comments

@EmilyNyx
Copy link

What version of Bun is running?

Bun v1.1.30-canary.71+af82a446d (macOS arm64)

What platform is your computer?

Darwin 24.0.0 arm64 arm

What steps can reproduce the bug?

class MyBlob extends Blob {
  constructor(parts) {
    super(parts);
    this.lastModified = 123;
  }
}

const blob = new MyBlob(["foo"]);

What is the expected behavior?

In node, works fine.

What do you see instead?

bun test.js

1 | class MyBlob extends Blob {
2 |   constructor(parts) {
3 |     super(parts);
4 |     this.lastModified = 123;
        ^
TypeError: Attempted to assign to readonly property.
      at new MyBlob (/Users/emily/Sites/ut-test/up-test.js:4:5)
      at /Users/emily/Sites/ut-test/up-test.js:8:14

Additional information

No response

@EmilyNyx EmilyNyx added bug Something isn't working needs triage labels Sep 30, 2024
@nektro nektro added web-api Something that relates to a standard Web API wintercg Web-interoperable Runtimes Community Group compatiblity and removed needs triage labels Oct 9, 2024
@nektro
Copy link
Member

nektro commented Oct 9, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working web-api Something that relates to a standard Web API wintercg Web-interoperable Runtimes Community Group compatiblity
Projects
None yet
Development

No branches or pull requests

2 participants