SharedWorker: Fix the wrong WPT undefined-arguments.html
The worker's name must be |''| in this test. According to the spec, the default value of WorkerOptions (which is the second argument of SharedWorker) is set as follows: dictionary WorkerOptions { WorkerType type = "classic"; RequestCredentials credentials = "same-origin"; DOMString name = ""; }; spec:https://html.spec.whatwg.org/multipage/workers.html#workeroptions Here, name property is set to an empty string. Therefore, the worker's name must be an empty string when the second argument is |undefined|. Bug: 907749 Change-Id: I5bc9c5afcf76beae1e3924661b2ea65fad5efe1d Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2015911 Commit-Queue: Eriko Kurimoto <elkurin@google.com> Reviewed-by:Hiroki Nakagawa <nhiroki@chromium.org> Reviewed-by:
Makoto Shimazu <shimazu@chromium.org> Cr-Commit-Position: refs/heads/master@{#734364}
Showing
Please register or sign in to comment