[w3c/ServiceWorker] The classic script's source text isn't defined in HTML any more (#1212)

[Update](https://w3c.github.io/ServiceWorker/#update-algorithm) algorithm step 8 compares the updating script's source text against the installed script's source text. This check is to return early when the two scripts are byte identical.

I noticed HTML removed the definition of the source text from the classic script struct and added a record (Script Record) to the script struct instead.

I wonder if comparing the record.[[ECMAScriptCode]] of the two scripts would make sense or we should add the source text to the script struct again. From https://github.com/w3c/ServiceWorker/pull/1023#discussion_r92696321, the latter seems to be more appropriate I suppose.

/cc @domenic 

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/ServiceWorker/issues/1212

Received on Friday, 20 October 2017 06:48:44 UTC