221004.2 · 364c0e196cd9ce07c14cdd82147f5002ba265d2a
perf_hooks: fix webperf idlharness
1. Enforce receiver checks on IDL interfaces.
2. Avoid prototype manipulation on constructing IDL interfaces with
`ReflectConstruct`.
3. `defineReplaceableAttribute` should create IDL getter/setter.
4. Corrected `PerformanceResourceTiming` to inherit the public interface
`PerformanceEntry` instead of the internal interface
`InternalPerformanceResourceTiming`.
5. `detail` is not a specified attribute on `PerfomanceEntry`. Node.js
specific extensions are moved to a subclass of `PerformanceEntry` as
`PerformanceNodeEntry`.
PR-URL: https://github.com/nodejs/node/pull/44483 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Minwoo Jung <nodecorelab@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
reading declarations
Changes to test/fixtures/wpt/resource-timing/buffer-full-decrease-buffer-during-callback.html. All files
test/fixtures/wpt/resource-timing/buffer-full-decrease-buffer-during-callback.html
@@ -0,0 +1,26 @@+<!DOCTYPE HTML>+<html>+<head onload>+<meta charset="utf-8" />+<title>This test validates that decreasing the buffer size in onresourcetimingbufferfull callback does not result in extra entries being dropped.</title>+<link rel="author" title="Google" href="http://www.google.com/" />+<link rel="help" href="https://www.w3.org/TR/resource-timing-2/#dom-performance-onresourcetimingbufferfull"/>+<script src="/resources/testharness.js"></script>+<script src="/resources/testharnessreport.js"></script>+<script src="resources/resource-loaders.js"></script>+<script src="resources/buffer-full-utilities.js"></script>+</head>+<body>+<script>+promise_test(async () => {+ performance.addEventListener('resourcetimingbufferfull', () => {+ performance.setResourceTimingBufferSize(1);+ });+ await fillUpTheBufferWithTwoResources();+ load.script(scriptResources[2]);+ await bufferFullFirePromise;+ checkEntries(2);+}, "Test that decreasing the buffer limit during the callback does not drop entries");+</script>+</body>+</html>