DescriptionEnable using a JS dictionary to initialize a the fields in a Mojo struct. For example, to initialize a URLRequest:
var urlRequest = new loader.URLRequest({
url: "http://www.cnn.com",
method: "GET",
auto_follow_redirects: true
});
The value of unspecified fields is the Mojo default for the field's type. Values for fields that were not specified in the Mojom struct definition are ignored.
BUG=416163
Committed: https://crrev.com/25584136ce30ad399720cf1af27c4579810beeaf
Cr-Commit-Position: refs/heads/master@{#296410}
Patch Set 1 #Patch Set 2 : Removed console module test dependency #
Messages
Total messages: 17 (8 generated)
|