Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(186)

Issue 2854183005: js_externs_generator: Treat empty object as Object

Created:
3 years, 7 months ago by michaelpg
Modified:
3 years, 7 months ago
Reviewers:
CC:
chromium-reviews
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

js_externs_generator: Treat empty object as Object Breaks IDL tests, may not be the right approach BUG=717827 COMMIT=false

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -4 lines) Patch
M tools/json_schema_compiler/js_externs_generator.py View 1 chunk +7 lines, -4 lines 0 comments Download

Messages

Total messages: 1 (0 generated)
michaelpg
3 years, 7 months ago (2017-05-03 03:06:52 UTC) #1
This fails FAIL: JsExternGeneratorTest in testBasic:

  /**
   * A map from string to number.
   * @type {Object<string, number>}
+  * @typedef {Object}
   * @see https://developer.chrome.com/extensions/fakeApi#type-dict
   */
  chrome.fakeApi.Qux.prototype.dict;

where a plain Object<string, foo> property of a dictionary in an IDL file is
inadvertently be affected by the change to _AppendTypedef.

Powered by Google App Engine
This is Rietveld 408576698