Issue #2692 - Part 6: Don't #include js/SourceBufferHolder.h in jsapi.h.

Instead, require users to do so. This is a minor translation-unit size
improvement for anyone who never has to use SourceBufferHolder other than
by reference.
This commit is contained in:
Moonchild 2025-03-04 20:16:54 +01:00 committed by roytam1
commit 2e4620b5af
28 changed files with 43 additions and 8 deletions

View file

@ -10,6 +10,7 @@
#include "jsnativestack.h"
#include "jsnum.h" // For FIX_FPU()
#include "js/SourceBufferHolder.h"
#include "builtin/Promise.h"
#include "frontend/BytecodeCompiler.h"
@ -33,6 +34,8 @@ using mozilla::DebugOnly;
using mozilla::Unused;
using mozilla::TimeDuration;
using JS::SourceBufferHolder;
namespace js {
GlobalHelperThreadState* gHelperThreadState = nullptr;