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

dart:dom indexeddb unable to delete single object by key #1855

Closed
sethladd opened this issue Feb 25, 2012 · 7 comments
Closed

dart:dom indexeddb unable to delete single object by key #1855

sethladd opened this issue Feb 25, 2012 · 7 comments
Assignees
Labels
P0 A serious issue requiring immediate resolution

Comments

@sethladd
Copy link
Contributor

The following Dart code:

dom.IDBRequest removeRequest = objectStore.delete(key);

when compiled with Frog, generates this code:

var removeRequest = objectStore.delete_(key);

and fails with this error:

Uncaught NoSuchMethodException : method not found: 'delete_'

@sethladd
Copy link
Contributor Author

I fixed the problem by adding:

_IDBRequestJs delete(_IDBKeyJs key) native '''return this.delete(key);''';

to dom_frog.dart

and:

_IDBRequestJs delete(_IDBKeyJs key) native '''return this.delete(key);''';

to IDBObjectStore.dart

though I'm not sure if I had to do both :)

@rakudrama
Copy link
Member

Since 'delete_' appears nowhere in the Dart and dart:dom code, this is a Frog compiler bug. Frog should not rename native methods.


Set owner to @kasperl.
Removed Area-UI label.
Added Area-Frog label.

@sethladd
Copy link
Contributor Author

This is blocking an internal partner. Let us know if you need any additional information or context. Thanks!

@kasperl
Copy link

kasperl commented Feb 28, 2012

Since this is a blocking issue I'm raising the priority. Will take a look today.


Removed Priority-High label.
Added Priority-Critical, Accepted labels.

@kasperl
Copy link

kasperl commented Feb 28, 2012

CL out for review: https://chromiumcodereview.appspot.com/9487012.


Added Started label.

@kasperl
Copy link

kasperl commented Feb 29, 2012

Fix landed in r4742. Let me know if this fixes the problem for you, Seth.


Added Fixed label.

@sethladd
Copy link
Contributor Author

sethladd commented Mar 1, 2012

Confirmed. Thanks a ton!

@sethladd sethladd added Type-Defect P0 A serious issue requiring immediate resolution labels Mar 1, 2012
copybara-service bot pushed a commit that referenced this issue Jan 19, 2023
Revisions updated by `dart tools/rev_sdk_deps.dart`.

dartdoc (https://github.com/dart-lang/dartdoc/compare/a99abd4..ed56883):
  ed56883d  2023-01-17  Parker Lougheed  Fix, cleanup, and simplify CSS (#3302)

http (https://github.com/dart-lang/http/compare/c955c7e..57c53b0):
  57c53b0  2023-01-17  Brian Quinlan  Fix a NPE that occurs when an error occurs before a response is received. (#852)

protobuf (https://github.com/dart-lang/protobuf/compare/dd04535..cc0f287):
  cc0f287  2023-01-18  Kevin Moore  Run non-null-safe tests with Dart 2 (#791)

test (https://github.com/dart-lang/test/compare/43fd928..19582a8):
  19582a8d  2023-01-19  Nate Bosch  Avoid empty `::group::` in Github reporter (#1855)
  fc4ea341  2023-01-19  Nate Bosch  Fix a test to use an still invalid URI (#1856)
  bd96213a  2023-01-18  Nate Bosch  Improve output for collections and long strings (#1852)
  9f7de8a2  2023-01-17  Nate Bosch  Remove operator extensions (#1847)
  f790feb0  2023-01-17  Nate Bosch  Add Condition abstraction (#1846)

webdriver (https://github.com/google/webdriver.dart/compare/b8c7bb5..00c887d):
  00c887d  2023-01-17  Devon Carew  rev to 3.0.2 in preparation for publishing (#268)

Change-Id: I2cbbcdce4fa510cd2458aa05dd45eed01e840c9c
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/279329
Auto-Submit: Devon Carew <devoncarew@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P0 A serious issue requiring immediate resolution
Projects
None yet
Development

No branches or pull requests

3 participants