mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-20 16:55:40 +00:00
dda8b08621
We should have the same public API available whenever possible, and make it a no-op or make it throw immediately if JS was built without support for it, instead of showing or hiding the API in header files using configure macros. Otherwise embedders can easily get mismatches between a library with functionality and header files without it, or vice versa. There was no good reason why JS_GetErrorType() was nightly-only API, so this also enables it unconditionally. Differential Revision: https://phabricator.services.mozilla.com/D52124 --HG-- extra : moz-landing-system : lando
17 lines
492 B
C++
17 lines
492 B
C++
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
|
* vim: set ts=8 sts=2 et sw=2 tw=80:
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
#ifndef js_BinASTFormat_h
|
|
#define js_BinASTFormat_h
|
|
|
|
namespace JS {
|
|
|
|
enum class BinASTFormat { Multipart, Context };
|
|
|
|
} /* namespace JS */
|
|
|
|
#endif /* js_BinASTFormat_h */
|