Git Product home page Git Product logo

Comments (7)

queengooborg avatar queengooborg commented on July 22, 2024 1

I'm afraid that the code example you provided is not available. Could you please provide the code once again, perhaps directly in a comment here?

from browser-compat-data.

linhttbk97 avatar linhttbk97 commented on July 22, 2024

https://drive.google.com/file/d/1LCcVHFoT9b_P8tqGRT5ct9M9vfOFk7zx/view?usp=sharing
here is the sample typescript code

from browser-compat-data.

queengooborg avatar queengooborg commented on July 22, 2024

Thanks for providing the sample code! I added it directly to your original message and converted it from TypeScript to pure JavaScript to simplify the test.

Looking at the code, I see that you create the sync access handle, you flush it, and then you close it. But you don't actually write any data; sampleData is unused in this function.

As a result, I'm going to close this issue as it's a development issue, rather than a browser issue.

from browser-compat-data.

linhttbk97 avatar linhttbk97 commented on July 22, 2024

@queengooborg No,I deleted it when copying, my mistake. Pls reopen this issue
I just updated code and provide console log. I try to read "test.db" file again and see file size is 0 byte after write sampleData

from browser-compat-data.

queengooborg avatar queengooborg commented on July 22, 2024

I just took another look, this time attempting to run the code provided (after converting it from TypeScript again -- FYI, for ease of testing, you should always provide pure JavaScript examples in test code, unless there's an absolute need to use TypeScript in the example), and I've found that the contents of the file have been written properly in Safari 16.5 and 17.5, as well as Chrome 126.

Screenshot 2024-07-05 at 19 50 56

from browser-compat-data.

linhttbk97 avatar linhttbk97 commented on July 22, 2024

I think i could be happen on lower memory (maybe full disk) but I don't know why the QuotaExceededError doesn't throw

from browser-compat-data.

linhttbk97 avatar linhttbk97 commented on July 22, 2024

It was tested on 3 mac machines, my mac worked normally but other two didn't

from browser-compat-data.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.