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 · 0 comments
Open

Blob LastModified incompatibility with Node #14257

EmilyNyx opened this issue Sep 30, 2024 · 0 comments
Labels
bug Something isn't working needs triage

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs triage
Projects
None yet
Development

No branches or pull requests

1 participant