Skip to content

Commit cd212f7

Browse files
simongdaviesCopilot
andcommitted
Update src/hyperlight-js-runtime/src/globals/freeze.rs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 0bc75dd commit cd212f7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • src/hyperlight-js-runtime/src/globals

src/hyperlight-js-runtime/src/globals/freeze.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ use rquickjs::Ctx;
2727
pub fn setup(ctx: &Ctx<'_>) -> rquickjs::Result<()> {
2828
ctx.eval::<(), _>(
2929
r#"
30-
if (typeof globalThis.console === 'object') {
30+
if (typeof globalThis.console === 'object' || typeof globalThis.console === 'function') {
3131
Object.freeze(globalThis.console);
3232
}
3333
if ('console' in globalThis) {

0 commit comments

Comments
 (0)