mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-09 13:30:26 +02:00
Fix sandbox
* module/ice-9/sandbox.scm (eval-in-sandbox): Remove use of deprecated-and-now-removed allow-legacy-syntax-objects? parameter.
This commit is contained in:
parent
afb0a92d50
commit
454f2eeb97
1 changed files with 2 additions and 5 deletions
|
@ -1,6 +1,6 @@
|
|||
;;; Sandboxed evaluation of Scheme code
|
||||
|
||||
;;; Copyright (C) 2017 Free Software Foundation, Inc.
|
||||
;;; Copyright (C) 2017, 2018 Free Software Foundation, Inc.
|
||||
|
||||
;;;; This library is free software; you can redistribute it and/or
|
||||
;;;; modify it under the terms of the GNU Lesser General Public
|
||||
|
@ -260,10 +260,7 @@ allocation limit is exceeded, an exception will be thrown to the
|
|||
(call-with-time-and-allocation-limits
|
||||
time-limit allocation-limit
|
||||
(lambda ()
|
||||
;; Prevent the expression from forging syntax objects. See "Syntax
|
||||
;; Transformer Helpers" in the manual.
|
||||
(parameterize ((allow-legacy-syntax-objects? #f))
|
||||
(eval exp module)))))
|
||||
(eval exp module))))
|
||||
(lambda () (when sever-module? (sever-module! module)))))
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue